package edu.uni.dormitory.mapper;

import edu.uni.dormitory.bean.ExchangeApply;
import edu.uni.dormitory.bean.ExchangeApplyExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 郑伟森
 * @create 2019.05.01
 * @function 映射
 */
public interface ExchangeApplyMapper {
    int countByExample(ExchangeApplyExample example);

    int deleteByExample(ExchangeApplyExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ExchangeApply record);

    int insertSelective(ExchangeApply record);

    List<ExchangeApply> selectByExample(ExchangeApplyExample example);

    ExchangeApply selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ExchangeApply record, @Param("example") ExchangeApplyExample example);

    int updateByExample(@Param("record") ExchangeApply record, @Param("example") ExchangeApplyExample example);

    int updateByPrimaryKeySelective(ExchangeApply record);

    int updateByPrimaryKey(ExchangeApply record);

    ExchangeApply selectSameCollegeById(@Param("id") Long id, @Param("collegeId") Long collegeId);

    List<ExchangeApply> selectExchangeApplyPageByCollege(Long collegeId);

    List<ExchangeApply> selectExchangeApplyPageByArea(Long areaId);
}